package com.onetech.adrewards.free.dialogs;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.google.analytics.tracking.android.Fields;
import com.google.analytics.tracking.android.MapBuilder;
import com.google.analytics.tracking.android.Tracker;
import com.onetech.adrewards.free.R;
import com.zuzu.dialogs.BaseDialogNoTitleBar;


public class ExchangeSuccessDialog extends BaseDialogNoTitleBar {
	private TextView mMessage=null;
	private ImageView mGetPointBtn=null;
	
	private Tracker mTracker;
	private Context mContext=null;
	public ExchangeSuccessDialog(Context context, String title,String message) {
		super(context, context.getString(R.string.error_message_title), TYPE_NO_BUTTON, R.layout.dialog_exchange_success_layout);
		mContext=context;
		mMessage=(TextView)findViewById(R.id.tvContent);
		mMessage.setText(message);
		mGetPointBtn=(ImageView)findViewById(R.id.btnGetPoints);
		mGetPointBtn.setOnClickListener(this);
	}
	@Override
	public void onClick(View view) {
		super.onClick(view);		
	}
	@Override
    public void onStart() {
        super.onStart();
        try {
            mTracker.set(Fields.SCREEN_NAME, mContext.getString(R.string.ExchangeSuccessDialog));            
            mTracker.send(MapBuilder.createAppView().build());            
		} catch (Exception e) {
		}
    }
}
